CLI Use Case - Analyze a simple code project built using an executable script on a Linux PC

The CLI can be used to reproduce the effects of Creating a New Perforce QAC Project. This example starts from the same situation, in which you have a simple layout of the source files shown

As before, you build this code project by running the command make on the command line, where the Makefile contents are as shown below:

CXX = g++
all:
    $(CXX) -o outputFile hello.cpp hello2.cpp
    ./subDirectory/code.cpp
clean:

As with Creating a New Perforce QAC Project, the procedure is conducted in two steps: creating a new Perforce QAC project, and then informing the Perforce QAC software of the files to be analyzed (this is done by building the code project while the Perforce QAC software observes the process). The result is that you have an empty Perforce QAC project, which must then be populated with the relevant files.